#include <iostream>
using namespace std;
int operacion(int n1,char op,int n2);
int main ()
{
    int n1,n2;
    char op;
    cout<<"Ingrese n1"<<endl;
    cin>>n1;
    cout<<"Ingrese opcion"<<endl;
    cin>>op;
    cout<<"Ingrese n2"<<endl;
    cin>>n2;
    cout<<operacion(n1,op,n2);
    return 1;
}

int operacion(int n1,char op,int n2)
{
    switch(op)
    {
        case '+':
            return n1+n2;
            break;
        case '-':
            return n1-n2;
            break;
        case '*':
            return n1*n2;
            break;
        case '/':
            return n1/n2;
            break;



    }

}
